<div class="container">
    <div class="row">
        <div class="span8">
            <legend><strong>Materi : {judul}</strong></legend>
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th colspan="2">{judul}</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td><strong>Upload</strong></td>
                        <td>{date}</td>
                    </tr>
                    <tr>
                        <td><strong>Oleh</strong></td>
                        <td>{dosen}</td>
                    </tr>
                    <tr>
                        <td><strong>Matakuliah</strong></td>
                        <td>{matkul}</td>
                    </tr>
                    <tr>
                        <td><strong>Sinopsis</strong></td>
                        <td>{sinopsis}</td>
                    </tr>
                    <tr>
                        <td><strong>Total Download</strong></td>
                        <td>{download}</td>
                    </tr>
                    <tr>
                        <td><strong>Download Link</strong></td>
                        <td>
                            <?php
                            if ($status == 'Private') {
                                $login = $this->session->userdata('login');
                                if ($login != TRUE) {
                                    echo '<strong>Anda harus login terlebih dahulu.</strong>';
                                } else {
                                    echo anchor('materi/download/' . $hash, 'Download');
                                }
                            } else {
                                echo anchor('materi/download/' . $hash, 'Download Link');
                            }
                            ?>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="span4">
            <div class="row-fluid">
                <div class="span12">
                    <legend>Materi lain</legend>
                    <ul>
                        <?php foreach ($materi as $data): ?>
                            <li><i class="icon-file"></i> <?php echo anchor('materi/detail/' . $data->hash, $data->judul . ' (<strong>' . $data->download . '</strong>)') ?></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </div>
            <div class="row-fluid">
                <div class="span12">
                    <legend>Lihat materi berdasarkan</legend>
                    <ul>
                        <li><?php echo anchor('materi/dosen/{dosen}', 'Nama dosen : {dosen}') ?></li>
                        <li><?php echo anchor('materi/matakuliah/{matkul}', 'Matakuliah : {matkul}') ?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>